package pattern.behavioral.memento.simple;

/**
 * @author: chaoyang.ren  
 * @date:Jun 16, 2017  
 * @time:3:44:46 PM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public class GameMemento {
	private Game game;
	/**
	 * 构造方法
	 * @param game
	 */
    public GameMemento(Game game){
        this.game = new Game();
        this.game.setHeroState(game.getHeroState().clone());
    }

	public Game getGame() {
		return game;
	}

	public void setGame(Game game) {
		this.game = game;
	}
	
}

